#include<iostream>
using namespace std;
#include"student.pb.h"
int main(void)
{
    Book book;
    book.set_pages()
   
   
    std::string bookstr;
    book.SerializeToString(&bookstr);
    std::cout << "serialize str is " << bookstr << std::endl;
    Book book2;
    book2.ParseFromString(bookstr);
    std::cout << "book2 name is " << book2.name() << " price is "
        << book2.price() << " pages is " << book2.pages() << std::endl;
    getchar();


	return  0;
}